package com.gupaoedu.design.strategy.pay;

import com.gupaoedu.design.strategy.pay.impl.AliyPay;
import com.gupaoedu.design.strategy.pay.impl.JdPay;
import com.gupaoedu.design.strategy.pay.impl.UnionPay;
import com.gupaoedu.design.strategy.pay.impl.WechatPay;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/13.
 */
public enum PayWay {
    ALIY_PAY(new AliyPay()),
    WECHAT_PAY(new WechatPay()),
    JD_PAY(new JdPay()),
    UNION_PAY(new UnionPay());

    private PayMent payMent;
    PayWay(PayMent payMent) {
        this.payMent = payMent;
    }

    public PayMent get() {
        return payMent;
    }
}
